<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<table align="center">
<c:forEach items="${requestScope.list}" var="u" varStatus="x">
<tr>
<td>${x.index}</td>
<td>${u.username}</td>
<td>${u.tel}</td>
<td><a href="UsersSevlet?action=dell&id=${u.id}">删除</a></td>
</tr>
</c:forEach>
<tr>
  <td colspan="4">
       <a href="${pageContext.request.contextPath}/user/getusersByPage/1">首页</a>
        <a href="${pageContext.request.contextPath}/user/getusersByPage/${up}">上一页</a>
        <a href="${pageContext.request.contextPath}/user/getusersByPage/${next}">下一页</a>
        <a href="${pageContext.request.contextPath}/user/getusersByPage/${pageNum}">末页</a>
  </td>
  
</tr>
</table>
